/*
*  Copyright 2019-2025 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.dao;

import lombok.AllArgsConstructor;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.sql.Timestamp;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
* @description /
* @author laoxu
* @date 2025-07-01
**/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("iws_freeze_Task_record")
public class FreezeTaskRecordDao implements Serializable {

    @TableId(value = "id")
    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "任务ID")
    private String taskId;

    @ApiModelProperty(value = "楼层")
    private String floor;

    @ApiModelProperty(value = "冻结时间")
    private Timestamp freezeTime;

    @ApiModelProperty(value = "解冻时间")
    private Timestamp unfreezeTime;

    @ApiModelProperty(value = "冻结账号")
    private String freezeName;

    @ApiModelProperty(value = "解冻账号")
    private String unfreezeName;

    @ApiModelProperty(value = "冻结历史(0现在/1历史)")
    private Integer freezeHistory;

    @ApiModelProperty(value = "冻结描述")
    private String freezeDes;

    @ApiModelProperty(value = "冻结信息")
    private String freezeNotes;

    @ApiModelProperty(value = "物料的唯一标识")
    private String itemBarCode;

    @ApiModelProperty(value = "物料的编号")
    private String materialCode;

    @ApiModelProperty(value = "物料的名称")
    private String materialName;

    @ApiModelProperty(value = "物料的数量")
    private Float inventoryQuantity;

    @ApiModelProperty(value = "物料的计量单位")
    private String unit;

    @ApiModelProperty(value = "物料的规格描述")
    private String specs;

    @ApiModelProperty(value = "物料的批次号")
    private String batchCode;

    @ApiModelProperty(value = "冻结（1冻结/0启用）")
    private Integer disable;

    @ApiModelProperty(value = "原物料的生产厂家")
    private String manufacturers;

    @ApiModelProperty(value = "用于标识载具的唯一编码")
    private String containerCode;

    @ApiModelProperty(value = "原料、辅料、半成品")
    private String materialCategory;

    @ApiModelProperty(value = "3F 1.在制品 2.实体物料")
    private String material;

    @ApiModelProperty(value = "入厂时间")
    private Timestamp entryTime;

    @ApiModelProperty(value = "半成品")
    private String supplierCustomer;

    @ApiModelProperty(value = "仓库")
    private String warehouse;

    @ApiModelProperty(value = "发出仓位")
    private String issuePosition;

    @ApiModelProperty(value = "操作人")
    private String operator;

    @ApiModelProperty(value = "操作时间")
    private Timestamp operationTime;

    @ApiModelProperty(value = "Color")
    private String color;

    @ApiModelProperty(value = "MeasurementMethod")
    private String measurementMethod;

    @ApiModelProperty(value = "MeedleCount")
    private String meedleCount;

    @ApiModelProperty(value = "Size")
    private String size;

    @ApiModelProperty(value = "SizePage")
    private String sizePage;

    @ApiModelProperty(value = "WorkingNo")
    private String workingNo;

    @ApiModelProperty(value = "产品类型")
    private String productType;

    @ApiModelProperty(value = "包装方式")
    private String packagingMethod;

    @ApiModelProperty(value = "特殊工艺")
    private String specialProcess;

    @ApiModelProperty(value = "程式名")
    private String programName;

    @ApiModelProperty(value = "编织机器")
    private String weavingMachine;

    @ApiModelProperty(value = "HCBanderole")
    private String hcbanderole;

    @ApiModelProperty(value = "composition")
    private String composition;

    @ApiModelProperty(value = "Qclab")
    private String qclab;

    @ApiModelProperty(value = "包装配比")
    private String packagingRatio;

    public void copy(FreezeTaskRecordDao source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
